package com.esirong.whatime.model;

/**
 * Created by esirong on 2015-05-31.
 */
public abstract class ResultHandler<T> {
    /**
     * 成功，返回成果数据
     * @param result
     */
    public abstract void onSuccess(T result);

    /**
     * 失败，返回失败数据
     * @param code
     * @return
     */
    public abstract  boolean onFailed(int code);
}
